package com.k2.gulimall.member.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import lombok.*;

/**
 * 会员统计信息
 * 
 * @author changchaojie
 * @email changchaojie@gmail.com
 * @date 2020-11-09 17:36:10
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("ums_member_statistics_info")
public class MemberStatisticsInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 会员id
	 */
	private Long memberId;
	/**
	 * 累计消费金额
	 */
	@Builder.Default
	private BigDecimal consumeAmount = BigDecimal.valueOf(0);
	/**
	 * 累计优惠金额
	 */
	@Builder.Default
	private BigDecimal couponAmount = BigDecimal.valueOf(0);
	/**
	 * 订单数量
	 */
	@Builder.Default
	private Integer orderCount = 0;
	/**
	 * 优惠券数量
	 */
	@Builder.Default
	private Integer couponCount = 0;
	/**
	 * 评价数
	 */
	@Builder.Default
	private Integer commentCount = 0;
	/**
	 * 退货数量
	 */
	@Builder.Default
	private Integer returnOrderCount = 0;
	/**
	 * 登录次数
	 */
	@Builder.Default
	private Integer loginCount = 0;
	/**
	 * 关注数量
	 */
	@Builder.Default
	private Integer attendCount = 0;
	/**
	 * 粉丝数量
	 */
	@Builder.Default
	private Integer fansCount = 0;
	/**
	 * 收藏的商品数量
	 */
	@Builder.Default
	private Integer collectProductCount = 0;
	/**
	 * 收藏的专题活动数量
	 */
	@Builder.Default
	private Integer collectSubjectCount = 0;
	/**
	 * 收藏的评论数量
	 */
	@Builder.Default
	private Integer collectCommentCount = 0;
	/**
	 * 邀请的朋友数量
	 */
	@Builder.Default
	private Integer inviteFriendCount = 0;

}
